import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '产品编码',
    align: "center",
    sorter: true,
    dataIndex: 'goodsNo'
  },
  {
    title: '产品名称',
    align: "center",
    sorter: true,
    dataIndex: 'goodsNo_dictText'
  },
  {
    title: '工厂',
    align: "center",
    sorter: true,
    dataIndex: 'factoryId_dictText'
  },
];

// 高级查询数据
export const superQuerySchema = {
  goodsNo: {title: '产品编码',order: 0,view: 'sel_search', type: 'string',dictTable: "goods_info", dictCode: 'goods_no', dictText: 'goods_name',},
  factoryId: {title: '工厂',order: 1,view: 'sel_search', type: 'string',dictTable: "p_factory_manage", dictCode: 'code', dictText: 'name',},
};
